package com.songlanyun.modules.distributionconfig.service;

import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.distributionconfig.entity.DistributionShopProxyConfig;
import com.songlanyun.modules.distributionconfig.model.DistributionShopProxyConfigDTO;

import java.util.Map;

/**
 * 平台商家代销商品小程序分佣配置
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-12-22 11:43:24
 */
public interface DistributionShopProxyConfigService extends IBaseService<Long,DistributionShopProxyConfig> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查看平台商家代销商品小程序分佣配置
     * @param shopId
     * @return
     */
    DistributionShopProxyConfig getByShop(Long shopId);

    /**
     * 设置平台商家代销商品小程序分佣配置
     * @param shopId
     * @param dto
     * @return
     */
    DistributionShopProxyConfig set(Long shopId, DistributionShopProxyConfigDTO dto);
}

